Release 10.1A: OpenEdge Data Management:
SQL Reference
ALTER TABLE
The
ALTER TABLEstatement can be used to:Syntax
Note: See the "Syntax for 4GL Attributes" section for a list of Progress 4GL table and column attributes. Example
In the following example, the
ALTER TABLEstatement is used to change the name of a table. In the example, the table namedcustomerchanges toCustomers:
Example
In this example, the
ALTER TABLEstatement is used to change the name of a column within a table and the column namedAddresschanges toStreet:
Example
In this example, table
customeradds the columnRegion:
Example
In this example,
ALTER TABLEadds a Progress 4GL description to a table and changes the 4GL default data access index of the table:
Example
In this example,
ALTER TABLE RENAME INDEXis used to change an index namedCustNumtoCustomerNumberIndex:
Note
Authorization
Must have the
DBAprivilege, ownership of the table, or all the specified privileges on the table.Related statements
ADD TABLE, DROP TABLE
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |